import request from '@/utils/request'
// -------- 供应品种 --------
let BASE_ADDRESS = '/tool/collateralRate'

// 押品押率分页查询  /tool/collateralRate/list
export const getCollateralRateListApi = (params) =>{
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

// 抵押物分页查询 /tool/collateralType/list
export const getCollateralTypeListApi = (params) =>{
    return request({
        url: `/tool/collateralType/list`,
        method: "get",
        params
    })
}

// 添加押品押率 /tool/collateralRate/add
export const getCollateralRateAddApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}

// 修改押品押率 /tool/collateralRate/edit
export const getCollateralRateEditApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 删除押品押率 /tool/collateralRate/remove/{id}
export const getCollateralRateRemoveApi = (id) =>{
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: "delete",
    })
}

// 添加多个押品押率 /tool/collateralRate/addlistCover
export const addlistCollateralRateApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/addlistCover`,
        method: "post",
        data
    })
}